<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>首页</title>
<%@ include file="/pages/inc/taglibs.jsp"%>
</head>
<body>
	<div class="modal-dialog modal-lg">
		<div class="container newproject">
			<div class="modal-content">
				<div class="modal-header">
					<h4 class="modal-title">费用分配</h4>
				</div>
				<div class="modal-body">
					<form id="installationForm" class="form-horizontal">
						<table id="expenseAssigeTable">
							<tbody>
								<c-rt:if test="${expenseAssignItem == null}">
									<c-rt:forEach items="${projectList}" var="project">
										<tr>
											<td class="inputLabelTd">${project.projectName}<input
												type="hidden" value="${project.id}"></td>
											<td class="inputTd"><input type="text" class="text">
											</td>
										</tr>
									</c-rt:forEach>
								</c-rt:if>
								<c-rt:if test="${expenseAssignItem != null}">
									<c-rt:forEach items="${expenseAssignItem}" var="item">
										<tr>
											<td class="inputLabelTd">${item.projectName}<input
												type="hidden" value="${item.projectId}"></td>
											<td class="inputTd"><input type="text" class="text" value="${item.rate}">
											</td>
										</tr>
									</c-rt:forEach>
								</c-rt:if>								
							</tbody>
						</table>
					</form>
				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-default" data-dismiss="modal"
						onclick="saveAssignExpense()">保存</button>
						<button type="button" class="btn btn-default" data-dismiss="modal"
						onclick="commitAssignExpense()">提交</button>
					<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
				</div>
			</div>
		</div>
	</div>
</body>
</html>